package org.cloud.zuul.server;

import org.cloud.zuul.filter.SimpleFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * 
 * <p>
 * Description: zuul网关示例，基于jvm的反向代理功能，类似于nginx
 * </p>
 * 
 * @author: zsljava@163.com
 * @version 1.0.0
 * <p>
 * History:
 * -----------------------------------------------
 * @Date: 2017年3月14日
 * @author: zsljava@163.com
 * @version 1.0.0
 * @OP: Create
 * -----------------------------------------------
 * </p>
 *
 * @since
 * @see
 */
@EnableZuulProxy //让本地的请求转发到适当的服务
@SpringCloudApplication //启动SpringBoot服务
public class ZuulServerBootstrap {
	
	@Bean
    public SimpleFilter simpleFilter() {
        return new SimpleFilter();
    }

	public static void main(String[] args) {
		SpringApplication.run(ZuulServerBootstrap.class, args);
	}
}
